{% extends "datasources_base.html" %}

{% block content %}

<div class="row">
	<div class="small-12 columns">

<a class="button small" href="{% url 'hypothesis:index' %}">Hypothesis imports (back to list of all)</a>


	</div>
</div>

<div class="row">
	<div class="small-12 columns">

Title or ID:
<h1>{{ hypothesis.title|default:hypothesis.id }}</h1>

	{% if hypothesis.api %}

	API: {{ hypothesis.api }}

	{% endif %}


	{% if hypothesis.token %}

	API Token for authorization: {{ hypothesis.token }}

	{% endif %}


	{% if hypothesis.description %}

	{{ hypothesis.description }}

	{% endif %}

<h2>Filter(s)</h2>

	{% if hypothesis.uri %}
	<p>
	URI: {{ hypothesis.uri }}
	</p>
	{% endif %}

	{% if hypothesis.user %}
	<p>
	User: {{ hypothesis.user }}
	</p>
	{% endif %}

	{% if hypothesis.group %}
	<p>
	Group: {{ hypothesis.group }}
	</p>
	{% endif %}

	{% if hypothesis.tag %}
	<p>
	Tag: {{ hypothesis.tag }}
	</p>
	{% endif %}


	</div>
</div>


<div class="row">
	<div class="small-12 columns">

<h3>Actions</h3>

<a class="button" href="{% url 'hypothesis:crawl' hypothesis.id %}">Import annotations</a></li>

<a class="button" href="{% url 'hypothesis:update' hypothesis.id %}">Edit settings</a>


	</div>
</div>

{% endblock content %}
